<template>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ProductClassPro',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_product_class: {},
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/product/ProductClassPro/productClassPro?execute=Frame&ttpreturn=treegrid' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
          this["s_product_class"] = this.loadTreeTable(this["s_product_class"], "product_classid", "product_higher");
        })
      },
    },
  }
</script>
